//
//  ShareManager.h
//  KwSing
//
//  Created by yuchenghai on 14-9-30.
//  Copyright (c) 2014年 kuwo.cn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WeiXinApiManager.h"
#import "TencentApiManager.h"

typedef void (^shareCompletionBlock)(BOOL isSuccess);

typedef enum {
    KSSharePlatformTypeUnknown,
    KSSharePlatformTypeWXFriends,
    KSSharePlatformTypeWX,
    KSSharePlatformTypeQQZone,
    KSSharePlatformTypeQQ,
    KSSharePlatformTypeSinaWeiBo
} KSSharePlatformType;

@interface ShareManager : NSObject

+ (instancetype)defaultManager;

#pragma mark -微博
// 后台分享
- (void)shareWeiBoInBackgroundWithText:(NSString *)text withCompletion:(shareCompletionBlock)completion;

// 跳到应用分享
- (void)shareWeiBoInAPPWithText:(NSString *)text withCompletion:(shareCompletionBlock)completion;

// 跳到应用分享(带图片)
- (void)shareWeiBoInAPPWithText:(NSString *)text image:(UIImage *)image withCompletion:(shareCompletionBlock)completion;
#pragma mark -QQ
// 跳到应用分享
- (void)shareQQInAPP:(KSShareToQQType)shareToQQType
               title:(NSString *)title
                 url:(NSString *)url
         description:(NSString *)description
            imageUrl:(NSString *)imageUrl
            isToZone:(BOOL)toZone
      withCompletion:(shareCompletionBlock)completion;

- (void)shareQQInAPP:(KSShareToQQType)shareToQQType
               title:(NSString *)title
                 url:(NSString *)url
         description:(NSString *)description
               image:(UIImage  *)image
            isToZone:(BOOL)toZone
      withCompletion:(shareCompletionBlock)completion;

#pragma mark -微信
- (void)shareWeiXinInAPP:(KSShareToWXType)shareToWXType
                   title:(NSString *)title
                     url:(NSString *)url
                 dataUrl:(NSString *)dataUrl
             description:(NSString *)description
                   image:(UIImage *)image
             isToFriends:(BOOL)toFriends
          withCompletion:(shareCompletionBlock)completion;

@end
